<!-- /* Description for file.
 *简历入库模板编辑页面
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/resumerequireds
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0701
 * @lastmodified  张朋2011年0701
 -->
 <?php
echo $html->css ( 'tab' );
echo $html->css ( 'jquery-validate/css/screen' );
?> 

<script type="text/javascript">
//Form验证
$(document).ready(function() {
	 $.validator.setDefaults({       
		 submitHandler: function(form) {    
		  form.submit();  
		}       
	});   
			
	// validate signup form on keyup and submit
	$("#ResumerequiredEditForm").validate({
		rules: {
		 "data[Resumerequired][chineseName]": {
				required: true,string: true,stringMinLength:0,stringMaxLength:50
			},
		"data[Resumerequired][templateCN]": {
		required: false,stringMinLength:0,stringMaxLength:255
		},
		"data[Resumerequired][templateEN]": {
		required: false,stringMinLength:0,stringMaxLength:255
		},
		"data[Resumerequired][templateJP]": {
		required: false,stringMinLength:0,stringMaxLength:255
		}

		},
		messages: {
		},
		//设置验证触发事件 
		focusInvalid: false, 
		onkeyup: false, 
		//设置错误信息提示DOM  
		errorPlacement: function(error, element) { 
		error.appendTo( element.parent()); 
		}
	});
});
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Resumesetting');//二级目录
										   echo '>';echo __('Resumerequireds Set');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Edit Resumerequired',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<?php echo $form->create('Resumerequired');?>

<fieldset>
	<legend><?php __('Edit Resumerequired');?></legend>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
		<tr>
		<td>
		<?php
			echo $form->input('id');?>
		</td>
		</tr>
		<tr>
				<td width="50"></td>
				<td width="100"><?php __('chineseName');//字段名?>:<font color="red">*</font></td>
				<td>
				<?php echo $form->input('chineseName',array('default'=>'chineseName','class' => 'TextBoxE1','label'=>false));?>
				</td>
				<td width="50"></td>
				<td width="100"><?php __('templateCN');//中文?>:</td>
				<td>
				<?php echo $form->textarea('templateCN',array('default'=>'templateCN','class' => 'TextBoxH','label'=>false));?>
				</td>
		</tr>		
		<tr>
				<td width="50"></td>
				<td width="100"><?php __('templateEN');//英语?>:</td>
				<td>
				<?php echo $form->textarea('templateEN',array('default'=>'templateEN','class' => 'TextBoxH','label'=>false));?>
				</td>
				<td width="50"></td>
				<td width="100"><?php __('templateJP');//日语?>:</td>
				<td >
				<?php echo $form->textarea('templateJP',array('default'=>'templateJP','class' => 'TextBoxH','label'=>false));?>
				</td>
		</tr>
		<!--<tr>
				<td width="50"></td>
				<td width="100"><?php __('isRequired');//是否必填?>:</td>
				<td>
				<?php echo $form->input('isRequired',array('default'=>'','class' => 'TextBoxE1','label'=>false));?>
				</td>
				<td colspan="3"></td>
		</tr>
	--></table>
	</fieldset>
	<?php echo $form->button('返回',array('type'=>'button','class'=>'backsubmit','onclick'=>'history.back(-1)'));?>  <!-- 返回上一级-->
	<?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>  <!-- __('reset', true)取消-->
	<?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit'));?>  <!-- __('Add', true)增加-->
	<?php echo $form->end();?>
</div>
